home *** CD-ROM | disk | FTP | other *** search
-
-
-
- STTY C Library Procedures STTY
-
-
-
- NNAAMMEE
- stty, gtty - set and get terminal state (defunct)
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssggttttyy..hh>>
-
- ssttttyy((ffdd,, bbuuff))
- iinntt ffdd;;
- ssttrruucctt ssggttttyybb **bbuuff;;
-
- ggttttyy((ffdd,, bbuuff))
- iinntt ffdd;;
- ssttrruucctt ssggttttyybb **bbuuff;;
-
- DDEESSCCRRIIPPTTIIOONN
- TThhiiss iinntteerrffaaccee iiss oobbssoolleetteedd bbyy iiooccttll((22))..
-
- _S_t_t_y sets the state of the terminal associated with _f_d.
- _G_t_t_y retrieves the state of the terminal associated with _f_d.
- To set the state of a terminal the call must have write per-
- mission.
-
- The _s_t_t_y call is actually ``ioctl(fd, TIOCSETP, buf)'',
- while the _g_t_t_y call is ``ioctl(fd, TIOCGETP, buf)''. See
- _i_o_c_t_l(2) and _t_t_y(4) for an explanation.
-
- DDIIAAGGNNOOSSTTIICCSS
- If the call is successful 0 is returned, otherwise -1 is
- returned and the global variable _e_r_r_n_o contains the reason
- for the failure.
-
- SSEEEE AALLSSOO
- ioctl(2), tty(4)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 May 15, 1985 1
-
-
-
-